import React from 'react'
import styled from 'styled-components'

const Container = styled.img`
	width: ${({ size, rem }) => (size && rem ? size : size + 'px')};
	height: ${({ size, rem }) => (size && rem ? size : size + 'px')};
	cursor: ${({ pointer }) =>
		pointer ? 'pointer' : 'pointer'}; //暂时设置为全部pointer
`

let Icons =  ({ src, ...other }) => <Container src={src} {...other} />
export default Icons;


// WEBPACK FOOTER //
// ./src/components/Icon/index.js